import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-13
 * Time:18:22
 */
public class main3 {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9,11};
        Scanner sc=new Scanner(System.in);
        System.out.print("输入数值：");
        int x= sc.nextInt();
        int kk=0;
        for(int i=0;i<arr.length;i++)
        {
            for(int c=i;c<arr.length;c++)
            {
                if(arr[i]+arr[c]==x) {
                    kk=1;
                    System.out.println(i + "和" + c);
                    break;
                }
            }
            if(kk==1)
                break;
        }
    }
}

